negotiator.qualitymeasures
Class NegotiationSessionWrapper

java.lang.Object
  extended by negotiator.boaframework.NegotiationSession
      extended by negotiator.qualitymeasures.NegotiationSessionWrapper

public class NegotiationSessionWrapper
extends NegotiationSession

Converts a stored negotiation trace of the opponent to a negotiation session.

Author:
Mark Hendrikx

Field Summary
 
Fields inherited from class negotiator.boaframework.NegotiationSession
domain, opponentBidHistory, outcomeSpace, ownBidHistory, timeline, utilitySpace
 
Constructor Summary
NegotiationSessionWrapper(Trace trace, java.lang.String mainPath)
          Given a trace, and the path to the file where to load the utility profile, construct a negotiation session.
 
Method Summary
 double getDiscountedUtility(Bid bid, double time)
          Returns the discounted utility of a bid given the bid and the time at which it was offered.
 double getDiscountFactor()
          Returns the discount factor of the utilityspace.
 BidDetails getMaxBidinDomain()
          Returns the best bid in the domain.
 BidDetails getMinBidinDomain()
          Returns the worst bid in the domain.
 BidHistory getOwnBidHistory()
          Returns the bidding history of the agent.
 double getTime()
          Returns the normalized time (t = [0,1])
 Timeline getTimeline()
           
 
Methods inherited from class negotiator.boaframework.NegotiationSession
getData, getDomain, getIssues, getOpponentBidHistory, getOutcomeSpace, getSessionData, getUtilitySpace, setData, setOutcomeSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegotiationSessionWrapper

public NegotiationSessionWrapper(Trace trace,
                                 java.lang.String mainPath)
Given a trace, and the path to the file where to load the utility profile, construct a negotiation session.

Parameters:
trace - of the opponent
mainPath - to the utility space
Method Detail

getOwnBidHistory

public BidHistory getOwnBidHistory()
Description copied from class: NegotiationSession
Returns the bidding history of the agent.

Overrides:
getOwnBidHistory in class NegotiationSession
Returns:
bidding history of the agent.

getDiscountFactor

public double getDiscountFactor()
Description copied from class: NegotiationSession
Returns the discount factor of the utilityspace. Each utilityspace has a unique discount factor.

Overrides:
getDiscountFactor in class NegotiationSession
Returns:
discount factor of the utilityspace.

getTimeline

public Timeline getTimeline()
Overrides:
getTimeline in class NegotiationSession
Returns:
timeline of the negotiation.

getTime

public double getTime()
Description copied from class: NegotiationSession
Returns the normalized time (t = [0,1])

Overrides:
getTime in class NegotiationSession
Returns:
normalized time.

getMaxBidinDomain

public BidDetails getMaxBidinDomain()
Description copied from class: NegotiationSession
Returns the best bid in the domain. If the outcomespace is set, it is used in this step. Else a highly inefficient method is used.

Overrides:
getMaxBidinDomain in class NegotiationSession
Returns:
bid with lowest highest possible utility.

getMinBidinDomain

public BidDetails getMinBidinDomain()
Description copied from class: NegotiationSession
Returns the worst bid in the domain. If the outcomespace is set, it is used in this step. Else a highly inefficient method is used.

Overrides:
getMinBidinDomain in class NegotiationSession
Returns:
bid with lowest possible utility.

getDiscountedUtility

public double getDiscountedUtility(Bid bid,
                                   double time)
Description copied from class: NegotiationSession
Returns the discounted utility of a bid given the bid and the time at which it was offered.

Overrides:
getDiscountedUtility in class NegotiationSession
Parameters:
bid - which discount utility is requested.
time - at which the bid was offered.
Returns:
discounted utility of the given bid at the given time.